package aconcagua.measure

class IndexOutOfRangeException extends Exception {
	private index;
	private collection;

	public IndexOutOfRangeException(anIndex, aCollection) {
		super("Index ${anIndex} out of range for ${aCollection}");
		index = anIndex;
		collection = aCollection;
	}

	public index() {
		return index;
	}

	public collection() {
		return collection.clone();
	}
}
